package com.bootdo.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class QcloudSmsConfig {
    @Value("${qcloud.sms.appid:111}")
    private int appId;
    @Value("${qcloud.sms.appkey:123}")
    private String appKey;
    @Value("${qcloud.sms.templateId:113}")
    private int templateId;
    @Value("${qcloud.sms.sign:null}")
    private String sign;
    @Value("${qcloud.sms.mock:true}")
    private boolean mock;
    @Value("${qcloud.sms.expire:5}")
    private int expires;

    public int getAppId() {
        return appId;
    }

    public void setAppId(int appId) {
        this.appId = appId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public int getTemplateId() {
        return templateId;
    }

    public void setTemplateId(int templateId) {
        this.templateId = templateId;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public boolean isMock() {
        return mock;
    }

    public void setMock(boolean mock) {
        this.mock = mock;
    }

    public int getExpires() {
        return expires;
    }

    public void setExpires(int expires) {
        this.expires = expires;
    }

    @Override
    public String toString() {
        return "QcloudSmsConfig{" +
                "appId=" + appId +
                ", appKey='" + appKey + '\'' +
                ", templateId=" + templateId +
                ", sign='" + sign + '\'' +
                ", mock=" + mock +
                ", expires=" + expires +
                '}';
    }
}
